Convenience functions to control the legend position for ggplot2
.
Has to be called after setting the theme.
theme_mod_disable_legend()theme_mod_legend_position(
position = c("top", "bottom", "left", "right", "none", "inside"),
position.inside = NULL
)
theme_mod_legend_top()
theme_mod_legend_bottom()
theme_mod_legend_left()
theme_mod_legend_right()
Changes the legend.position
of the ggplot2::theme()
.
Position of the ggplot2 legend.
Options are ("top", "bottom", "left", "right", "none", "inside")
Coordinates for the legend inside the plot.
If set overwrites position
to inside
.